﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

// Class representing 1 row of the Recipes table (DB_version 3) 

namespace StoveTop.Models
{
	public class Recipe
	{
		private int _id;
		private string _name;
		private int _prepTime;
		private int _cookTime;
		private decimal _rating;
		private decimal _difficulty;

		// Constructors
		public Recipe() {
		}
		public Recipe(int id, string name, int prepTime, int cookTime, decimal rating, decimal difficulty){
			_id = id;
			_name = name;
			_prepTime = prepTime;
			_cookTime = cookTime;
			_rating = rating;
			_difficulty = difficulty;
		}

		// Setters
		public void SetId(int id) {
			_id = id;
		}
		public void SetName (string name) {
			_name = name;
		}
		public void SetPrepTime (int prepTime) {
			_prepTime = prepTime;
		}
		public void SetCookTime (int cookTime) {
			_cookTime = cookTime;
		}
		public void SetRating (decimal rating) {
			_rating = rating;
		}
		public void SetDifficulty (decimal difficulty) {
			_difficulty = difficulty;
		}
		// Getters
		public int GetId() {
			return _id;
		}
		public string GetName () {
			return _name;
		}
		public int GetPrepTime () {
			return _prepTime;
		}
		public int GetCookTime () {
			return _cookTime;
		}
		public decimal GetRating () {
			return _rating;
		}
		public decimal GetDifficulty () {
			return _difficulty;
		}
		// Other Useful Methods
		public override string ToString() {
			return "Recipe [id=" + _id + " name=" + _name + " prepTime= " + _prepTime + " cookTime= " + _cookTime 
				+ " rating= " + _rating + " difficulty= " + _difficulty + "]";
		}
	}
}